﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Root2.master" AutoEventWireup="true" CodeFile="Vac-xin.aspx.cs" Inherits="Vac_xin" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder_left" Runat="Server">
  <%--   <style type="text/css">
        .cot1 {
            width: 18%;
            height: 22px;
            vertical-align: top;
        }

        .cot2 {
            width: 70%;
            height: 32px;
            vertical-align: top;
            padding-bottom: 5px;
        }

        .placeBox span {
            display: block;
        }

        .placeBox.thongbao {
        }

        fieldset {
            background: #f8f8f8;
            border-radius: 7px;
            margin-bottom: 10px;
            margin-right: 10px;
            padding: 10px;
        }

            fieldset legend {
                display: block;
                background: #ffffff;
                margin-left: 20px;
                padding: 3px;
                font-size: 15px;
                line-height: 1;
                color: #555555;
                font-weight: bold;
                *padding: 0 0 5px 145px;
                *line-height: 1.5;
            }

        .form li {
            list-style-type: none;
            margin: 13px 0px;
            display: inline-block;
        }

        .form-clear li {
            clear: both;
            width: 100%;
        }
 
    </style>--%>
    <fieldset>
        <legend>Thông tin Vac-xin</legend>
       <%-- <asp:Label ID="lbTimkiem" runat="server">Nhập thông tin </asp:Label>
        <div class="placeBox">
            <div id="divsitebar" class="divsitebar">
            </div>
            <div id="frmTrangChu" runat="server" style="padding-right: 8px; padding-bottom: 20px; color: #333">
                <%--<span style="padding: 10px 0px; color: #0075BA">Để xem thông tin và lịch sử tiêm của bé vui lòng nhập đầy đủ thông tin tìm kiếm !</span>--%>
                <%--<ol class="form form-clear">
                    <li>
                        <label>Ten Vac-xin: </label>
                        <asp:TextBox ID="txtTenVC" runat="server" Width="100px"></asp:TextBox>
                        <%--<label>Tên bé: </label>
                        <asp:TextBox ID="txtTenBe" runat="server" Width="80px"></asp:TextBox>--%>
                       <%-- <asp:Button ID="btnTimkiem" runat="server" Text="Tìm Kiếm" OnClick="btnTimkiem_Click"/>
                    </li>
                </ol>
                <table>

                    <tr>
                        <td class="cot1">Tên Vac-xin:
                        </td>
                        <td class="cot2">
                            <asp:Label ID="lbTenVC" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td class="cot1">Mã Vac-xin:
                        </td>
                        <td class="cot2">
                            <asp:Label ID="lbMaVC" runat="server"></asp:Label>
                        </td>
                    </tr>

                    <tr>
                        <td class="cot1">Số lượng:
                        </td>
                        <td class="cot2">
                            <asp:Label ID="lbSoLuong" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td class="cot1">Đơn giá:
                        </td>
                        <td class="cot2">
                            <asp:Label ID="lbDonGia" runat="server"></asp:Label>
                        </td>
                    </tr>

                    <tr>
                        <td class="cot1">Ghi chú:
                        </td>
                        <td class="cot2">
                            <asp:Label ID="lbGhiChu" runat="server"></asp:Label>
                        </td>
                    </tr>--%>
                   <%-- <tr>
                        <td class="cot1">Chứng minh thư bố mẹ:
                        </td>
                        <td class="cot2">
                            <asp:Label ID="lbChungminhthu" runat="server"></asp:Label>
                        </td>
                    </tr>--%>
             
         <%--<div>
        <fieldset>
            <legend>Danh sách</legend>
            <asp:ListView ID="ListViewVacxin" runat="server" 
                OnItemCommand="ListViewVacxin_OnItemCommand"
               OnItemDeleting="ListViewVacxin_OnItemDeleting" 
                OnItemUpdating="ListViewVacxin_OnItemUpdating">
                <LayoutTemplate>
                    <table border="1">
                        <tr>
                            <th>Mã Vacxin</th>
                            <th style="width:200px">Tên Vacxin</th>
                            <th>Số lượng</th>
                            <th>Đơn giá</th>
                            <th>Ghi chú</th>
                           
                        </tr>
                        <asp:PlaceHolder ID="itemPlaceholder" runat="server"></asp:PlaceHolder>
                    </table>
                    <asp:DataPager ID="ContactsDataPager" runat="server" PageSize="10">
                        <Fields>
                            <asp:NextPreviousPagerField ButtonType="Button"
                                ShowFirstPageButton="true"
                                ShowNextPageButton="false"
                                ShowPreviousPageButton="false" />
                            <asp:NumericPagerField ButtonCount="10" />
                            <asp:NextPreviousPagerField ButtonType="Button"
                                ShowLastPageButton="true"
                                ShowNextPageButton="false"
                                ShowPreviousPageButton="false" />
                        </Fields>
                    </asp:DataPager>
                </LayoutTemplate>
                <ItemTemplate>
                    <tr>
                       <td><%# Eval("MaVC") %></td>
                        <td><%# Eval("TenVC") %></td>
                        <td><%# Eval("SoLuong") %></td>
                        <td><%# Eval("DonGia") %></td>
                        <td><%# Eval("GhiChu") %></td>  
                                                                         
                    </tr>
                </ItemTemplate>
            </asp:ListView>--%>
        <asp:ListView ID="ListViewVacxin" runat="server" 
                OnItemCommand="ListViewVacxin_OnItemCommand"
                OnItemDeleting="ListViewVacxin_OnItemDeleting" 
                OnItemUpdating="ListViewVacxin_OnItemUpdating">
                <LayoutTemplate>
                    <table border="1">
                        <tr>
                            <th>Mã Vacxin</th>
                            <th style="width:200px">Tên Vacxin</th>
                            <th>Số lượng</th>
                            <th>Đơn giá</th>
                            <th>Ghi chú</th>
                           <%-- <th style="width:120px" >Thao tác</th>--%>
                        </tr>
                        <asp:PlaceHolder ID="itemPlaceholder" runat="server"></asp:PlaceHolder>
                    </table>
                    <asp:DataPager ID="ContactsDataPager" runat="server" PageSize="10">
                        <Fields>
                            <asp:NextPreviousPagerField ButtonType="Button"
                                ShowFirstPageButton="true"
                                ShowNextPageButton="false"
                                ShowPreviousPageButton="false" />
                            <asp:NumericPagerField ButtonCount="10" />
                            <asp:NextPreviousPagerField ButtonType="Button"
                                ShowLastPageButton="true"
                                ShowNextPageButton="false"
                                ShowPreviousPageButton="false" />
                        </Fields>
                    </asp:DataPager>
                </LayoutTemplate>
                <ItemTemplate>
                    <tr>
                        <td><%# Eval("MaVC") %></td>
                        <td><%# Eval("TenVC") %></td>
                        <td><%# Eval("SoLuong") %></td>
                        <td><%# Eval("DonGia") %></td>
                        <td><%# Eval("GhiChu") %></td>
                        <%--<td >
                            <asp:LinkButton ID="LinkButtonSua" 
                                ToolTip="Sửa thông tin" 
                                runat="server" 
                                CommandArgument='<%# Eval("MaVC") %>'
                                CommandName="Update">Sửa</asp:LinkButton>
                            |
                            <asp:LinkButton ID="LinkButtonXoa" 
                                ToolTip="Xóa một bản ghi" 
                                runat="server" 
                                CommandArgument='<%# Eval("MaVC") %>'
                                CommandName="Delete" 
                                ForeColor="Brown" 
                                OnClientClick="return confirm('Bạn chắc chắn muốn xóa ?')">Xóa</asp:LinkButton>
                            <%--|--%> 
                           <%-- <a href='ChiTietVacxin.aspx?id=<%# Eval("MaVC") %>'>Chi tiết</a>--%>
                       
                    </tr>
                </ItemTemplate>
            </asp:ListView>
            </fieldset>
       </asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder_center" Runat="Server">
</asp:Content>

